#include "CServer_ZoidCom.h"

CZoidServer::CZoidServer(IServerCallbacks* parent)
{	
    m_pParent = parent;
}

CZoidServer::~CZoidServer()
{
}

bool CZoidServer::ZCom_cbConnectionRequest(ZCom_ConnID  _id, ZCom_BitStream &_request, ZCom_BitStream &_reply )
{
    // call to GUI
    // m_pConfigDialog->UpdateServerLog("Connection Attempt");
    m_pParent->emitLogMessages("Connection Attempt");
    return true;
}

void CZoidServer::ZCom_cbConnectionSpawned( ZCom_ConnID _id )
{
    // store new connection

    // create lobby_radio by telling connected clients to create
    // if they not already have

    // call to GUI
    m_pParent->emitLogMessages("Connection added");
}

void CZoidServer::ZCom_cbConnectionClosed( ZCom_ConnID _id, eZCom_CloseReason _reason, ZCom_BitStream &_reasondata )
{
    // remove connection

    // close lobby_radio

    // call to GUI
    m_pParent->emitLogMessages("Connection closed");
}
